From: Carlos Garnacho Date: Mon, 21 Jan 2019 20:40:10 +0000 (+0100) Subject: keyboard: Fix JS warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~29 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=545d49c70d0491ed6ccd4f020d8fbb7a7677ba72;p=gnome-shell.git keyboard: Fix JS warning The solution is pointed out by the warning itself. --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 6ecef255c..cbfdb0914 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -278,7 +278,7 @@ var Key = class Key { } _getKeyval(key) { - let unicode = String.charCodeAt(key, 0); + let unicode = key.charCodeAt(0); return Clutter.unicode_to_keysym(unicode); }